#!/usr/bin/env bash

### Installation directory
case `hostname` in
	'megatux')
		root='/home/jonathan/repositories/python-pages-google-code/python-pages/application'
		;;
	'macbook-jonathan')
		root='/Users/jonathanslenders/Documents/repositories/python-pages/application'
		;;
	'hercules')
		root='/web/jonathan/slenders.be/www/cgi-bin/website2/python-pages/application'
		;;
	*)
		echo "ERROR: please add your installation directory and host name in the start-server.sh script"
		exit 1
		;;
esac

### Configuration file
export SEAGULL_CONFIG=config.xml

### PYTHONPATH variable
export PYTHONPATH=$PATHONPATH:$root:$root/libs

### Start server
cd $root
python ./seagull/server.py --server
